/******************************************************************************
@file:  DoctorsRegistration.java
@author Ramesh Anandhan

DESCRIPTION
-----------------------------------------------------------------------------
Copyright (c) 2011, GEEKWAVE SOLUTIONS INC.

All rights reserved.
******************************************************************************/

package com.smartc.health;

import com.smartc.ui.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;

public class DoctorsRegistration extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.doctorsdetails);
		
		Intent intent = getIntent();
		Bundle data = intent.getExtras();
		String name = data.getString("docname");
		String spec = data.getString("specalist");
		String address = data.getString("address");
		String time = data.getString("time");
		
		TextView nametv = (TextView) findViewById(R.id.doc_Name);
		TextView spectv = (TextView) findViewById(R.id.doc_Desc);
		TextView addtv = (TextView) findViewById(R.id.doc_Address);
		TextView event_time = (TextView) findViewById(R.id.app_time);

		nametv.setText(name);
		spectv.setText(spec);
		addtv.setText(address);
		event_time.setText(time);
		
	}

	public void RegistrationClicked(View id){
		Toast.makeText(getApplicationContext(),"Reg clicked", Toast.LENGTH_SHORT).show();
	}
}
